// 查资质页面
import request from '@/utils/request'

/**
 * 获取我是资质客户
 * @param {*} page
 * @param {*} page_size
 * @returns
 */
export const getMyQualificationsListApi = (page, page_size) => {
  return request({
    url: '/findCard/mycustomer',
    method: 'get',
    params: {
      page,
      page_size
    }
  })
}

// 施工资质

/**
 * 获取 一级施工资质
 * @param {*} page
 * @param {*} page_size
 * @returns
 */
export const getFirstConstructionListApi = (page, page_size) => {
  return request({
    url: '/findCard/constructionFirst',
    method: 'get',
    params: {
      page,
      page_size
    }
  })
}
/**
 * 获取 二级施工资质
 * @param {*} page
 * @param {*} page_size
 * @returns
 */
export const getSecondConstructionListApi = (page, page_size) => {
  return request({
    url: '/findCard/constructionSecond',
    method: 'get',
    params: {
      page,
      page_size
    }
  })
}
/**
 * 获取 三级施工资质
 * @param {*} page
 * @param {*} page_size
 * @returns
 */
export const getThirdConstructionListApi = (page, page_size) => {
  return request({
    url: '/findCard/constructionThird',
    method: 'get',
    params: {
      page,
      page_size
    }
  })
}

// 承装修试资质

/**
 * 获取 一级承装修试资质
 * @param {*} page
 * @param {*} page_size
 * @returns
 */
export const getFirstDecorationListApi = (page, page_size) => {
  return request({
    url: '/findCard/decoration_style_first',
    method: 'get',
    params: {
      page,
      page_size
    }
  })
}
/**
 * 获取 二级承装修试资质
 * @param {*} page
 * @param {*} page_size
 * @returns
 */
export const getSecondDecorationListApi = (page, page_size) => {
  return request({
    url: '/findCard/decoration_style_second',
    method: 'get',
    params: {
      page,
      page_size
    }
  })
}
/**
 * 获取 三级承装修试资质
 * @param {*} page
 * @param {*} page_size
 * @returns
 */
export const getThirdDecorationListApi = (page, page_size) => {
  return request({
    url: '/findCard/decoration_style_third',
    method: 'get',
    params: {
      page,
      page_size
    }
  })
}
/**
 * 获取 四级承装修试资质
 * @param {*} page
 * @param {*} page_size
 * @returns
 */
export const getFourthDecorationListApi = (page, page_size) => {
  return request({
    url: '/findCard/decoration_style_forth',
    method: 'get',
    params: {
      page,
      page_size
    }
  })
}
/**
 * 获取 五级承装修试资质
 * @param {*} page
 * @param {*} page_size
 * @returns
 */
export const getFifthDecorationListApi = (page, page_size) => {
  return request({
    url: '/findCard/decoration_style_fifth',
    method: 'get',
    params: {
      page,
      page_size
    }
  })
}

// 设计资质
/**
 * 获取 设计资质甲级资质
 * @param {*} page
 * @param {*} page_size
 * @returns
 */
export const getFirstDesignListApi = (page, page_size) => {
  return request({
    url: '/findCard/Firstdesign',
    method: 'get',
    params: {
      page,
      page_size
    }
  })
}
/**
 * 获取 设计资质乙级资质
 * @param {*} page
 * @param {*} page_size
 * @returns
 */
export const getSecondDesignListApi = (page, page_size) => {
  return request({
    url: '/findCard/Seconddesign',
    method: 'get',
    params: {
      page,
      page_size
    }
  })
}
/**
 * 获取 设计资质丙级资质
 * @param {*} page
 * @param {*} page_size
 * @returns
 */
export const getThirdDesignListApi = (page, page_size) => {
  return request({
    url: '/findCard/Thirddesign',
    method: 'get',
    params: {
      page,
      page_size
    }
  })
}
// 监理资质

/**
 * 获取 监理甲级资质
 * @param {*} page
 * @param {*} page_size
 * @returns
 */
export const getFirstSupervisionListApi = (page, page_size) => {
  return request({
    url: '/findCard/Firstmonitor',
    method: 'get',
    params: {
      page,
      page_size
    }
  })
}
/**
 * 获取 监理乙级资质
 * @param {*} page
 * @param {*} page_size
 * @returns
 */
export const getSecondSupervisionListApi = (page, page_size) => {
  return request({
    url: '/findCard/Secondmonitor',
    method: 'get',
    params: {
      page,
      page_size
    }
  })
}
/**
 * 获取 监理丙级资质
 * @param {*} page
 * @param {*} page_size
 * @returns
 */
export const getThirdSupervisionListApi = (page, page_size) => {
  return request({
    url: '/findCard/Thirdmonitor',
    method: 'get',
    params: {
      page,
      page_size
    }
  })
}

// 地质灾害资质

/**
 * 获取 地质灾害甲级资质
 * @param {*} page
 * @param {*} page_size
 * @returns
 */
export const getFirstGeologyListApi = (page, page_size) => {
  return request({
    url: '/findCard/geology_first',
    method: 'get',
    params: {
      page,
      page_size
    }
  })
}
/**
 * 获取 地质灾害乙级资质
 * @param {*} page
 * @param {*} page_size
 * @returns
 */
export const getSecondGeologyListApi = (page, page_size) => {
  return request({
    url: '/findCard/geology_second',
    method: 'get',
    params: {
      page,
      page_size
    }
  })
}
/**
 * 获取 地质灾害丙级资质
 * @param {*} page
 * @param {*} page_size
 * @returns
 */
export const getThirdGeologyListApi = (page, page_size) => {
  return request({
    url: '/findCard/geology_third',
    method: 'get',
    params: {
      page,
      page_size
    }
  })
}
